package com.jy.adscm.operation.purchase.bean;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * bom和供应商管理配置表
 * </p>
 *
 * @author lzf
 * @since 2019-05-05
 */
@Data
public class Bomandsupplier implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 最小采购数
     */
    @TableField("miniPurchase")
    private String miniPurchase;
    /**
     * 提前采购期
     */
    private Integer predate;
    /**
     * 单价
     */
    private Double price;
    /**
     * 发票类型
     */
    @TableField("makeInvoiceType")
    private String makeInvoiceType;
    /**
     * 付款方式，先付款后发货，还是货到付款，付押金
     */
    @TableField("paymentMethod")
    private String paymentMethod;
    /**
     * 物流时间
     */
    @TableField("transportationTime")
    private String transportationTime;
    @TableField("transporttationMethod")
    private String transporttationMethod;


    private Long bid;
    private Long sid;
//    供应商名称
    @TableField(exist = false)
    private String supplierName;
//    物料名称
    @TableField(exist = false)
    private String bomName;

    /**
     * 起初数
     */
    @TableField("firstNums")
    private String firstNums;


    /**
     * bom数量
     */
    @TableField("bomNums")
    private Double bomNums;
    /**
     * 物料提前期
     */
    @TableField("materialLeadTime")
    private Double materialLeadTime;

    /**
     * 用途1是机器2是耗材
     */
    @TableField(exist = false)
    private int use;

    @TableField(exist = false)
    private String useName;

}
